package com.ruoyi.zhgd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.zhgd.domain.NMaterielDevice;
import com.ruoyi.zhgd.domain.vo.NMaterielDeviceVo;
import com.ruoyi.zhgd.domain.bo.NMaterielDeviceBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.zhgd.util.PageUtils;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 地磅Service接口
 *
 * @author zyb
 * @date 2023-09-18
 */
public interface INMaterielDeviceService {

    /**
     * 查询地磅
     */
    NMaterielDeviceVo queryById(String id);

    /**
     * 查询地磅列表
     */
    TableDataInfo<NMaterielDeviceVo> queryPageList(NMaterielDeviceBo bo, PageQuery pageQuery);

    /**
     * 查询地磅列表
     */
    List<NMaterielDeviceVo> queryList(NMaterielDeviceBo bo);

    /**
     * 新增地磅
     */
    Boolean insertByBo(NMaterielDevice bo);

    /**
     * 修改地磅
     */
    Boolean updateByBo(NMaterielDevice bo);

    /**
     * 校验并批量删除地磅信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    PageUtils materielDeviceList(Page page, Map<String, Object> params);

    TableDataInfo<Map> listAll(NMaterielDeviceBo bo);

    List<NMaterielDeviceVo> codeList(NMaterielDeviceBo bo);
}
